import instance from "@/http";

// 获取角色列表
export const  roleList = ()=>instance.get("/role/list")


// 角色分页查询
export const rolePage = (queryCondition)=>instance.post("/role/page",queryCondition)

// 角色添加和编辑
export const addOrEditRole = (form)=>instance.put("/role/addOrEdit",form)

// 删除角色
export const removeRole = (id)=>instance.delete("/role/delete/"+id)

// 获取角色权限
export const  rolePermissions = (id)=>instance.get("/role/permission/"+id)

// 添加角色权限
export const  insertRolePermissions = (params)=>instance.post("/role/addPermissions",params)